﻿using System;
using SimpleServiceBus.Messages.Management.Monitoring;
using SimpleServiceBus.Persistence.Domain;
using SimpleServiceBus.Persistence.Domain.Management.Entities;

namespace SimpleServiceBus.Persistence.Domain.Management.Entities
{
    public class EndpointPerformanceSummary : SsbEntity
    {
        public virtual ManagedEndpoint ManagedEndpoint { get; set; }

        public virtual EndpointMetricType Metric { get; set; }

        public virtual DateTime SamplePeriodStartTime { get; set; }
        public virtual DateTime SamplePeriodEndTime { get; set; }

        public virtual int SampleCount { get; set; }
        public virtual double Average { get; set; }
        public virtual double Min { get; set; }
        public virtual double Max { get; set; }
        public virtual double Sum { get; set; }
    }
}